package com.ming.dancing.springboot.service;

import com.ming.dancing.springboot.entity.Course;
import com.ming.dancing.springboot.entity.Dancer;
import com.ming.dancing.springboot.entity.DancerQuery;
import org.springframework.data.domain.Page;

import java.awt.print.Book;
import java.util.List;

public interface DancerService {
    List<Dancer> findallDancers();
    //增加舞者
    Dancer adddancer(Dancer dancer);
    //查询舞者列表
    Page<Dancer> findAllStudent(int pageIndex, int pageSize);
    //查到舞者byid
    Dancer findDancerById(Integer id);
    //更新舞者
    Dancer UpdateDancer(Dancer dancer);
    //删除舞者
    void DeleteDancer(Integer id);
    //设置照片
    void setpicture(Integer id, String newFileName);
    //分页查询
    Page<Dancer> findDancerCriteria(Integer page, Integer size, DancerQuery dancerQuery);

}
